home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / tools / amiga / 3d_tools / t3dsrc.lha / readtddd_protos.h < prev    next >
C/C++ Source or Header  |  1994-01-20  |  4KB  |  165 lines

  1. /* Prototypes for functions defined in
  2. readtddd.c
  3.  */
  4.  
  5. extern int verbose_flag;
  6.  
  7. static void get_name(register char * name,
  8.                      register int size,
  9.                      WORLD * world);
  10.  
  11. static BYTE get_BYTE(WORLD * world);
  12.  
  13. static UBYTE get_UBYTE(WORLD * world);
  14.  
  15. static WORD get_WORD(WORLD * world);
  16.  
  17. static UWORD get_UWORD(WORLD * world);
  18.  
  19. static ULONG get_ULONG(WORLD * world);
  20.  
  21. static double get_FRACT(WORLD * world);
  22.  
  23. static void stuff_XYZ(XYZ_st * st,
  24.                       WORLD * world);
  25.  
  26. static void stuff_RGB(RGB_st * st,
  27.                       WORLD * world);
  28.  
  29. static void output_warning(WORLD * world,
  30.                            char * area,
  31.                            char * name,
  32.                            ULONG size);
  33.  
  34. extern int already_read_header;
  35.  
  36. extern unsigned char header_storage[13];
  37.  
  38. WORLD * read_World(FILE * file);
  39.  
  40. WORLD * read_TDDD(FILE * file);
  41.  
  42. static void process_INFO(register ULONG len,
  43.                          WORLD * world);
  44.  
  45. static void process_OBJ(register ULONG len,
  46.                         WORLD * world);
  47.  
  48. OBJECT * load_external_object(char * filename,
  49.                               MTRX * mtrx);
  50.  
  51. static OBJECT * process_EXTR(register ULONG len,
  52.                              OBJECT * obj,
  53.                              WORLD * world);
  54.  
  55. static void malloc_arrays(register int i,
  56.                           register DESC * desc);
  57.  
  58. static void process_DESC(register ULONG len,
  59.                          DESC ** orig,
  60.                          WORLD * world);
  61.  
  62. WORLD * read_ISTG(FILE * file);
  63.  
  64. SOBJ * add_SOBJ(ISTG * istg);
  65.  
  66. static void process_SOBJ(register ULONG len,
  67.                          WORLD * world);
  68.  
  69. static void process_OSIZ(ULONG size,
  70.                          SOBJ * sobj,
  71.                          WORLD * world);
  72.  
  73. static void process_POSN(ULONG size,
  74.                          SOBJ * sobj,
  75.                          WORLD * world);
  76.  
  77. static void process_ALGN(ULONG size,
  78.                          SOBJ * sobj,
  79.                          WORLD * world);
  80.  
  81. static void process_PALN(ULONG size,
  82.                          SOBJ * sobj,
  83.                          WORLD * world);
  84.  
  85. static void process_TALN(ULONG size,
  86.                          SOBJ * sobj,
  87.                          WORLD * world);
  88.  
  89. static void process_HING(ULONG size,
  90.                          SOBJ * sobj,
  91.                          WORLD * world);
  92.  
  93. static void process_PTH2(ULONG size,
  94.                          SOBJ * sobj,
  95.                          WORLD * world);
  96.  
  97. static void process_GLB2(ULONG size,
  98.                          SOBJ * sobj,
  99.                          WORLD * world);
  100.  
  101. static void process_AXIS(ULONG size,
  102.                          SOBJ * sobj,
  103.                          WORLD * world);
  104.  
  105. static void process_LITE(ULONG size,
  106.                          SOBJ * sobj,
  107.                          WORLD * world);
  108.  
  109. static void process_FILE(ULONG size,
  110.                          SOBJ * sobj,
  111.                          WORLD * world);
  112.  
  113. void insert_into_sorted_list(PALN ** ppaln,
  114.                              PALN * paln);
  115.  
  116. void delete_unused_frames(PALN ** orig,
  117.                           int frame);
  118.  
  119. static void mtrx_ident(register MTRX * mtrx);
  120.  
  121. static void mmultiply(register double * s,
  122.                       register double * d);
  123.  
  124. void inverse(register double * in,
  125.              register double * out);
  126.  
  127. void adjoint(register double * in,
  128.              register double * out);
  129.  
  130. OBJECT * load_staging_object(char * filename,
  131.                              MTRX * mtrx);
  132.  
  133. void load_staging_frame_objects(WORLD * world,
  134.                                 int frame);
  135.  
  136.  
  137. /* Prototypes for functions defined in
  138. read.c
  139.  */
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146. WORLD * read_TTDDD(FILE * file);
  147.  
  148.  
  149. OBJECT * create_object(void);
  150.  
  151. void move_extr(register OBJECT * obj,
  152.                register MTRX * mtrx);
  153.  
  154. void OUT_MEM(char * s);
  155.  
  156.  
  157. /* Prototypes for functions defined in
  158. freeworld.c
  159.  */
  160.  
  161. OBJECT * free_object(OBJECT * object);
  162.  
  163. WORLD * free_World(WORLD * World);
  164.  
  165.